<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class Login extends Validate
{
    /**
     *
     * @var array
     */
    protected $rule = [
        'username' => 'require',
        'password' => 'require',
        'captcha'  => 'require|captcha',
    ];

    /**
     *
     * @var array
     */
    protected $message = [
        'username.require' => '用户名必须',
        'password.require' => '密码必须',
        'captcha.require'  => '验证码',
        'captcha.captcha'  => '验证码错误',
    ];
}
